package com.itqf.service;

import com.itqf.bean.DtsRole;
import com.itqf.dto.DtsPermissionDto;
import com.itqf.dto.DtsSearchDto;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * projectName: shop_manage
 *
 * @author: MaTianWei
 * time: 2021/7/13 14:12
 * description:角色
 */
public interface DtsRoleService {
    //根据角色id查询角色名称
    List<String> queryRoleNames (Integer [] roleIds);

    List<Map> findRoleName();

    Map findRoleByPage(DtsSearchDto roles);

    boolean checkUserName(String rolename);

    DtsRole saveRoles(DtsRole roles);

    int updateRoles(DtsRole roles);

    int removeRoleById(Integer id);

    boolean checkSuper(int roleId);

    Set<String> queryPerission(int roleId);

    void removePermission(int roleId);

    void save(DtsPermissionDto permissionDto);
}
